﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Reflection;

namespace ResourceManager
{
   
    class Program
    {
        static void Main(string[] args)
        {
            Service serv = new Service();
            
            serv.LoadResourceCompleted += Test;

            serv.InitResourceAsync();

            Thread.Sleep(500);


            System.Console.ReadLine();
        }

        public static void Test(object o, LoadResourceCompletedEventArgs r)
        {
            System.Console.WriteLine(r.UserState);
        }
    }
}
